<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Title</title>
    <p>hello</p>
</head>
<body>
<form action={{ url_for('login') }} method='post'>
<select name="status">
    {% for row in deviceslist %}
    <option>{{ row['status'] }}</option>
        {% endfor %}
</select>
<select name="hostname">
    {% for row in deviceslist %}
    <option>
        {{ row['hostname'] }}</option>
         {% endfor %}
</select>
<input type="submit">
</form>
</body>
</html>